package com.ap.core.business.message.validation.handler.impl;

import com.ap.core.business.message.domain.translators.BindingMetaData;
import com.ap.core.business.message.validation.handler.AbstractValidationHandler;
import com.ap.core.common.types.InputMessageType;
import com.ap.core.common.types.ValidationType;
import com.ap.core.message.managertp.info.SubmitRTPMessageInfo;
import com.ap.core.validation.message.info.MessageValidationInfo;
import com.ap.core.validation.message.info.OriginalInfo;

/**
 * User: Ranjit.Singh
 * Implementation class for {@link com.ap.core.business.message.validation.handler.ValidationHandler} for SubmitRTPType message
 */
public class SubmitRTPValidationHandler extends AbstractValidationHandler<SubmitRTPMessageInfo, OriginalInfo> {



    @Override
    protected MessageValidationInfo<SubmitRTPMessageInfo, OriginalInfo> getMessageValidationInfo(final SubmitRTPMessageInfo request, final BindingMetaData metaData) {
        return new MessageValidationInfo<SubmitRTPMessageInfo, OriginalInfo>() {
            @Override
            public SubmitRTPMessageInfo getBoundObject() {
                return request;
            }

            @Override
            public OriginalInfo getOriginalInfo() {
                return null;
            }
        };
    }

}
